package com.idc.resource.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 异常信息枚举
 * Created by Lijing on 2017/7/4.
 */
@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    SYSTEM_ERROR("SYSTEM_ERROR","系统异常"),
    DATA_ERROR("DATA_ERROR","数据异常"),
    DB_ERROR("DB_ERROR","数据库操作异常"),
    PARAM_ERROR("PARAM_ERROR","参数错误"),
    AUTH_ERROR("AUTH_ERROR","您没有权限执行此次操作"),
    LOGIN_LOSE("L001","登录失效"),
    USER_LOSE("U001","用户名不存在或密码错误"),
    AUTH_CODE_LOSE("AUTH_CODE_LOSE","验证码已失效，请重新获取"),
    AUTH_CODE_ERROR("AUTH_CODE_ERROR","验证码错误!"),
    ;
    private String code;
    private String desc;
}
